
#include "Sprite.h"


Sprite::Sprite()
{
}


Sprite::~Sprite()
{
}

// Accessors
SGD::HTexture& Sprite::GetImage()
{
	return pImage;
}

Frame* Sprite::GetFrame()
{
	return pFrame;
}

SGD::Rectangle Sprite::GetCollisionRect(SGD::Point position)
{
	return GetFrame()->GetCollisionRect(position);
}

SGD::Rectangle Sprite::GetDrawRect()
{
	return GetFrame()->GetDrawRect();
}

// Mutators
void Sprite::SetFrame(Frame* frame)
{
	pFrame = frame;
}
